package com.bs.jianli.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.bs.jianli.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * <p>
 * 菜单管理表
 * </p>
 *
 * @author yao
 * @since 2023-01-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="Menu对象", description="菜单管理表")
public class Menu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜单id")
    @TableId(value = "menuid", type = IdType.ASSIGN_ID)
    private String menuid;

    @ApiModelProperty(value = "菜单名")
    private String menuname;

    @ApiModelProperty(value = "菜单URL")
    private String url;

    @ApiModelProperty(value = "父级id")
    private String pid;

    @ApiModelProperty(value = "权限标识")
    private String pression;

    @ApiModelProperty(value = "菜单类型")
    private Integer type;

    @TableField(exist = false)
    private List<Menu> menus;


}
